<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
/**
 * @Class Name : EgovCertLoginConfirm.jsp
 * @Description : 인증서로그인 확인
 * @Modification Information
 * @
 * @  수정일      수정자            수정내용
 * @ -------        --------    ---------------------------
 * @ 2009.08.13   한성곤          최초 생성
 *
 *  @author 공통컴포넌트개발팀 한성곤
 *  @since 2009.08.13
 *  @version 1.0 
 *  @see
 */
%>
<%@ page import="com.gpki.gpkiapi.cert.*" %>
<%@ page import="com.gpki.servlet.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/egovframework/cmm/utl/com.css" type="text/css">
<script>
function init() {
	alert('인증서 로그인이 정상적으로 처리되었습니다.');
}
</script>
<title>인증서 확인 </title>
</head>
<body onload="init();">

<noscript class="noScriptTitle">자바스크립트를 지원하지 않는 브라우저에서는 일부 기능을 사용하실 수 없습니다.</noscript>

<%--
String dn = null;
String issuerDn = null;

GPKIHttpServletRequest gpkirequest = null;
try {
    
    //System.out.println(request.getParameter("encryptedData"));
    
    gpkirequest = new GPKIHttpServletRequest(request);
    
    X509Certificate cert = gpkirequest.getSignerCert();
    
    dn = cert.getSubjectDN();
    issuerDn = cert.getIssuerDN();
} catch (Exception ex) {
    throw ex;
}
--%>

<table width="742" cellpadding="8" class="table-line">
<tbody>
<tr>
	<th class="title">발급자 DN</th>
	<td class="lt_text">${certInfo.issuerDn}</td>
</tr>
<tr>
	<th class="title">인증서 DN</th>
	<td class="lt_text">${certInfo.subjectDn}</td>
</tr>
<tr>
	<td align="center" colspan='2'><input type='button' value='다시 로그인' onclick="location.href='${pageContext.request.contextPath}/utl/sec/certLogin.do'"></td>
</tr>
</tbody>
</table>
</body>
</html>